package cn.yunchongbao.charging.device.service.impl;

import cn.yunchongbao.charging.common.pojo.vo.StationInfoVo;
import cn.yunchongbao.charging.common.pojo.vo.GunStatusUpdateParam;
import cn.yunchongbao.charging.device.service.DeviceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class DeviceServiceImpl implements DeviceService {
    @Override
    public StationInfoVo getStationInfo(Integer gunId) {
        StationInfoVo stationInfoVo = new StationInfoVo();
        stationInfoVo.setOperatorId(123);
        stationInfoVo.setStationId(123);
        stationInfoVo.setStationName("1号充电桩");
        return stationInfoVo;
    }

    public Boolean updateGunStatus(GunStatusUpdateParam gunStatusUpdateParam) {
        log.info("更新充电枪状态:{}", gunStatusUpdateParam);
        return true;
    }
}
